CC = gcc 
CFLAGS = -Wall  -g -O -fPIC #-DMOCK
CXXFLAGS = 
INCLUDE  =  ../include
TARGET   = libMVSDK.so
LIBPATH  = ./libs/

vpath %.h ./include

OBJS = CameraApi.o
SRCS = ../src/CameraApi.c



all:$(TARGET) $(OBJS)
$(OBJS):$(SRCS) 
	$(CC) $(CFLAGS) -I $(INCLUDE) -c $^

$(TARGET):$(OBJS)
	$(CC)  $(OBJS) -shared -fPIC -o $(TARGET)
	mv $(TARGET) $(LIBPATH)



clean:
	rm -f *.o
	rm -f $(LIBPATH)*
